class Mail < ActiveRecord::Base

  belongs_to :receiver, :class_name => 'User', :foreign_key => 'receiver_id'
  belongs_to :sender, :class_name => 'User', :foreign_key => 'sender_id'
  
  belongs_to :header, :class_name => 'Mail', :foreign_key => 'reply_id'
end
